<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			// WARNING: For POST requests, body is set to null by browsers.
			var data = new FormData();
			data.append("product_id", "2");

			var xhr = new XMLHttpRequest();
			xhr.withCredentials = true;

			xhr.addEventListener("readystatechange", function() {
				if (this.readyState === 4) {
					console.log(this.responseText);
				}
			});

			xhr.open("POST", "http://117.72.52.169:8082/api/service/list");
			// xhr.setRequestHeader("token", "a22d9d1c-0eeb-4834-abb0-9113250c61f3");

			xhr.send(data);
		</script>
	</body>
</html>